<p class="normal_tips" style="margin:0"><b class="fa fa-info-circle"></b> 常用配置地址：<br/>
	&lt;a href=&quot;[follow]&quot;&gt;绑定帐号&lt;/a&gt;<br/>
	&lt;a href=&quot;[website]&quot;&gt;微首页&lt;/a&gt;<br/>
	&lt;a href=&quot;http://xxxx?token=[token]&quot;&gt;Token&lt;/a&gt;<br/>
	&lt;a href=&quot;http://xxxx?opneid=[openid]&quot;&gt;OpenId&lt;/a&gt;
</p>

<div class="form-item cf">
	<label class="item-label"> 类型: </label>

	<div class="controls">
		<div class="check-item">
			<input type="radio" name="config[type]" value="1" class="regular-radio" id="config[type]_1"
			       onClick="changeOption()">
			<label for="config[type]_1"></label>文本
		</div>
		<!--    <label class="radio">
			  <input type="radio" name="config[type]" value="2" onClick="changeOption()">
			  图片 </label>-->
		<div class="check-item">
			<input type="radio" name="config[type]" value="3" class="regular-radio" id="config[type]_3"
			       onClick="changeOption()">
			<label for="config[type]_3"></label>图文
		</div>
		<div class="check-item">
			<input class="regular-radio" type="radio" name="config[type]" id="config[type]" value="2"
			       onClick="changeOption()">
			<label for="config[type]"></label>关键词
		</div>
	</div>
</div>
<div class="form-item cf show show2">
	<label class="item-label"> 关键词: <span class="check-tips">（可以是自定义回复，多图文等中的关键词）</span> </label>

	<div class="controls">
		<input type="text" name="config[keyword]" class="text input-large" value="{$data.config.keyword.value}">
	</div>
</div>
<div class="form-item cf show show3">
	<label class="item-label"> 标题: </label>

	<div class="controls">
		<input type="text" name="config[title]" class="text input-large" value="{$data.config.title.value}">
	</div>
</div>
<div class="form-item cf show show3 show1">
	<label class="item-label"> 内容: </label>

	<div class="controls">
		<label class="textarea input-large">
			<textarea name="config[description]">{$data.config.description.value}</textarea>
		</label>
	</div>

</div>

<div class="form-item cf show show3">
	<label class="item-label"> 图片: <span class="check-tips">图片链接，支持JPG、PNG格式，较好的效果为大图360*200，小图200*200</span> </label>

	<div class="controls uploadrow2" title="点击修改图片" rel="pic_url">
		<input type="file" id="upload_picture_pic_url">

		<input type="hidden" name="config[pic_url]" id="cover_id_pic_url" value="{$data.config.pic_url.value}"/>

		<div class="upload-img-box">
			<notempty name="data.config.pic_url.value">
				<div class="upload-pre-item2"><img width="100" height="100"
				                                   src="{$data.config.pic_url.value|get_cover_url}"/></div>
				<em class="edit_img_icon">&nbsp;</em>
			</notempty>
		</div>
	</div>

</div>
<div class="form-item cf show show3">
	<label class="item-label"> 链接: <span class="check-tips">点击图文消息跳转链接</span> </label>

	<div class="controls">
		<input type="text" name="config[url]" class="text input-large" value="{$data.config.url.value}">
	</div>
</div>
<script type="text/javascript">
	$(function () {
		initUploadImg();

	})
	function changeOption() {
		$(".show").each(function () {
			$(this).hide();

		});

		var val = $("input[name='config[type]']:checked").val();
		$('.show' + val).each(function () {
			$(this).show();
		});
	}
	$(function () {
		var type = "{$data.config.type.value|intval}";
		if (type == "0")
			type = 3;
		
		$("input[name='config[type]'][value=" + type + "]").attr("checked", true);
		changeOption();
	})
</script>